package com.woniu.product.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName t_shoppingcart
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TShoppingcart implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 购买数量
     */
    private Integer buyNum;

    /**
     * 购买单价
     */
    private BigDecimal buyPrice;

    /**
     * 购买总价
     */
    private BigDecimal totalPrice;

    /**
     * 购买人
     */
    private Long userId;

    /**
     * 购买时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 状态：0：未下单，1：已取消
     */
    private Integer status;

    /**
     * 商品ID
     */
    private Long skuId;

    /**
     * 商品
     */
    private String skuName;
}